package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.DropBehavior;
import com.yanmaohu.yulia.bean.LocalOrSchemaQualifiedName;

/**
 * @author Bright Lee
 */
public final class DropViewStatement implements SqlSchemaManipulationStatement {

    private int beginIndex;
    private int endIndex;
    private LocalOrSchemaQualifiedName tableName;
    private DropBehavior dropBehavior;

    public DropViewStatement(int beginIndex, LocalOrSchemaQualifiedName tableName, DropBehavior dropBehavior) {
        this.beginIndex = beginIndex;
        this.endIndex = dropBehavior.getEndIndex();
        this.tableName = tableName;
        this.dropBehavior = dropBehavior;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public LocalOrSchemaQualifiedName getTableName() {
        return tableName;
    }

    public DropBehavior getDropBehavior() {
        return dropBehavior;
    }

}
